package com.good.entity;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CollectionTable;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
@Entity
@Table(name="xx_set_demo")
@SequenceGenerator(name="myGenerator",sequenceName="xx_set_demo")
public class SetDemo extends BaseEntity{
	/**
	 * 
	 */
	private static final long serialVersionUID = 5239148733348891453L;
	private String name;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	private Set<String> set=new HashSet<String>();
	
	@ElementCollection
	@CollectionTable(name="xx_demo_set")
	public Set<String> getSet() {
		return set;
	}
	public void setSet(Set<String> set) {
		this.set = set;
	}
	


}
